package com.hrpc.exceptions;

public class RespCodeException extends RuntimeException{
    private final byte code;
    private final String desc;

    public RespCodeException(byte code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public RespCodeException(String message, byte code, String desc) {
        super(message);
        this.code = code;
        this.desc = desc;
    }

    public RespCodeException(String message, Throwable cause, byte code, String desc) {
        super(message, cause);
        this.code = code;
        this.desc = desc;
    }

    public RespCodeException(Throwable cause, byte code, String desc) {
        super(cause);
        this.code = code;
        this.desc = desc;
    }

    public RespCodeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, byte code, String desc) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.desc = desc;
    }
}
